/*
 * test_framework_util_phoenixsingleton.h
 *
 *  Created on: 2014. 6. 19.
 *      Author: jjaehuny
 */

#ifndef TDD_NFRAMEWORK_TEST_FRAMEWORK_UTIL_PHOENIXSINGLETON_H_
#define TDD_NFRAMEWORK_TEST_FRAMEWORK_UTIL_PHOENIXSINGLETON_H_

#include <gtest/gtest.h>

#include <Framework/Util/PhoenixSingleton.h>

class test_framework_util_phoenixsingleton : public testing::Test
{
public:
	class Dummy : public ::Framework::Util::PhoenixSingleton<Dummy>
	{
	public:
		Dummy() {}
		~Dummy() {}

		bool Value() { return true; }
	};

public:
	// Sets up the test fixture.
	virtual void SetUp() {}

	// Tears down the test fixture.
	virtual void TearDown() {}
};

TEST_F(test_framework_util_phoenixsingleton, test_framework_util_phoenixsingleton_success)
{
	EXPECT_TRUE(true == Dummy::getInstance().Value());
}


#endif /* TDD_NFRAMEWORK_TEST_FRAMEWORK_UTIL_PHOENIXSINGLETON_H_ */
